<template>
  <div>
    <div class="image">
      <img src="../../assets/images/successd.png" alt="" />
    </div>
    <p>操作成功</p>
    <div class="sures">
      <el-button @click="determine">确定</el-button>
    </div>
  </div>
</template>

<script>
export default {
    data() {
        return {
            
        }
    },
    methods: {
        determine(){ 
					var u = navigator.userAgent;
    			var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
					var isIOS = u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1; //ios终端
						if(isAndroid){
							window.demo.back()
						}else if(isIOS){
              var dict = {
                "name":"LiBaoQin",
                "gender":"Boy"
              };             
							window.webkit.messageHandlers.back.postMessage(dict);
						}
        }
    },
};
</script>

<style  scoped>
.image{
    text-align: center;
    margin-top: 100px;
}
p{
    text-align: center;
    margin-top: 20px
}
.sures{
    text-align: center;
    margin-top: 80px
}
.el-button{
    width: 150px;
    height: 44px;
    background: #FF615C;
    color: #fff;
    border: none
}
</style>
